package com.xzzz.irda.auth.server.service;

/**
 * 验证码检查
 *
 * @author wangyf
 * 
 */
public interface CaptchaService {

    /**
     * 根据短信验证码 key 查询手机验证码
     * @param phone 手机号
     * @param msgCaptchaKey 验证码 key
     * @param msgCaptchaCode 验证码值
     * @return 验证码是否正确
     */
    boolean checkMsgCaptchaCode(String phone, String msgCaptchaKey, String msgCaptchaCode);

    /**
     * 删除短信验证码
     * @param msgCaptchaKey 验证码key
     */
    void removeMsgCaptchaCode(String msgCaptchaKey);

}
